#complie
CC = gcc
#complie flags for devolep
CFLAGS = -g -Wall
#complile flags for products
#FFLAGS = -O2 -Wall -fPIC -I../include/ -ldl -static
OBJECT = httpd.o utils.o link.o


all: server

clean:
	@rm -rf *.o
	@rm -rf server

server: main.o $(OBJECT)
	$(CC) $(CFLAGS) main.o $(OBJECT) -o server

main.o: main.c httpd.h
	$(CC) $(CFLAGS) -c main.c

httpd.o: httpd.c httpd.h
	$(CC) $(CFLAGS) -c httpd.c

link.o: link.c link.h
	$(CC) $(CFLAGS) -c link.c

utils.o: utils.c utils.h
	$(CC) $(CFLAGS) -c utils.c
